// ==UserScript==
// @name         张鑫旭广告
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.zhangxinxu.com/*
// @grant        unsafeWindow
// @run-at       document-start
// ==/UserScript==

;(function () {
  'use strict'
  let dfd09dcb1a24 = document.createElement('style')
  dfd09dcb1a24.innerHTML = `
  .dfd09dcb1a24-hidden{
    display:none !important;
  }
  `
  document.head.append(dfd09dcb1a24)
  function removeAd(evt) {
    let src = evt.srcElement
    let tagName = src.tagName
    if (tagName?.includes('-')) {
      unsafeWindow.console.log('去你的， 就不看你广告')
      // src.remove()
      src.classList.add('dfd09dcb1a24-hidden')
      document.removeEventListener('DOMNodeInserted', removeAd)
    }
  }
  document.addEventListener('DOMNodeInserted', removeAd)
  // Your code here...
})()
